package com.hqt.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * InventoryProduct entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "INVENTORY_PRODUCT", schema = "HQT")
public class InventoryProduct implements java.io.Serializable {

	private static final long serialVersionUID = 6263674795223571966L;
	private String pkInventoryProduct;
	private InventoryType inventoryType;
	private String size;
	private Integer invertoryNum;
	private Integer saleNum;
	private String addTime;
	private String def1;
	private String def2;
	private String def3;
	private String def4;
	private String def5;
	private String def6;
	private String def7;
	private String def8;
	private String def9;
	private String def10;
	private Integer dr;
	private String ts;

	// Constructors

	/** default constructor */
	public InventoryProduct() {
	}

	/** minimal constructor */
	public InventoryProduct(String pkInventoryProduct) {
		this.pkInventoryProduct = pkInventoryProduct;
	}

	/** full constructor */
	public InventoryProduct(String pkInventoryProduct,
			InventoryType inventoryType, String size, Integer invertoryNum,
			Integer saleNum, String addTime, String def1, String def2,
			String def3, String def4, String def5, String def6, String def7,
			String def8, String def9, String def10, Integer dr, String ts) {
		this.pkInventoryProduct = pkInventoryProduct;
		this.inventoryType = inventoryType;
		this.size = size;
		this.invertoryNum = invertoryNum;
		this.saleNum = saleNum;
		this.addTime = addTime;
		this.def1 = def1;
		this.def2 = def2;
		this.def3 = def3;
		this.def4 = def4;
		this.def5 = def5;
		this.def6 = def6;
		this.def7 = def7;
		this.def8 = def8;
		this.def9 = def9;
		this.def10 = def10;
		this.dr = dr;
		this.ts = ts;
	}

	// Property accessors
	@Id
	@Column(name = "PK_INVENTORY_PRODUCT", unique = true, nullable = false, length = 20)
	public String getPkInventoryProduct() {
		return this.pkInventoryProduct;
	}

	public void setPkInventoryProduct(String pkInventoryProduct) {
		this.pkInventoryProduct = pkInventoryProduct;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "PK_INVENTORY_TYPE")
	public InventoryType getInventoryType() {
		return this.inventoryType;
	}

	public void setInventoryType(InventoryType inventoryType) {
		this.inventoryType = inventoryType;
	}

	@Column(name = "SIZE", length = 20)
	public String getSize() {
		return this.size;
	}

	public void setSize(String size) {
		this.size = size;
	}

	@Column(name = "INVERTORY_NUM", precision = 22, scale = 0)
	public Integer getInvertoryNum() {
		return this.invertoryNum;
	}

	public void setInvertoryNum(Integer invertoryNum) {
		this.invertoryNum = invertoryNum;
	}

	@Column(name = "SALE_NUM", precision = 22, scale = 0)
	public Integer getSaleNum() {
		return this.saleNum;
	}

	public void setSaleNum(Integer saleNum) {
		this.saleNum = saleNum;
	}

	@Column(name = "ADD_TIME", length = 19)
	public String getAddTime() {
		return this.addTime;
	}

	public void setAddTime(String addTime) {
		this.addTime = addTime;
	}

	@Column(name = "DEF1", length = 200)
	public String getDef1() {
		return this.def1;
	}

	public void setDef1(String def1) {
		this.def1 = def1;
	}

	@Column(name = "DEF2", length = 200)
	public String getDef2() {
		return this.def2;
	}

	public void setDef2(String def2) {
		this.def2 = def2;
	}

	@Column(name = "DEF3", length = 200)
	public String getDef3() {
		return this.def3;
	}

	public void setDef3(String def3) {
		this.def3 = def3;
	}

	@Column(name = "DEF4", length = 200)
	public String getDef4() {
		return this.def4;
	}

	public void setDef4(String def4) {
		this.def4 = def4;
	}

	@Column(name = "DEF5", length = 200)
	public String getDef5() {
		return this.def5;
	}

	public void setDef5(String def5) {
		this.def5 = def5;
	}

	@Column(name = "DEF6", length = 200)
	public String getDef6() {
		return this.def6;
	}

	public void setDef6(String def6) {
		this.def6 = def6;
	}

	@Column(name = "DEF7", length = 200)
	public String getDef7() {
		return this.def7;
	}

	public void setDef7(String def7) {
		this.def7 = def7;
	}

	@Column(name = "DEF8", length = 200)
	public String getDef8() {
		return this.def8;
	}

	public void setDef8(String def8) {
		this.def8 = def8;
	}

	@Column(name = "DEF9", length = 200)
	public String getDef9() {
		return this.def9;
	}

	public void setDef9(String def9) {
		this.def9 = def9;
	}

	@Column(name = "DEF10", length = 200)
	public String getDef10() {
		return this.def10;
	}

	public void setDef10(String def10) {
		this.def10 = def10;
	}

	@Column(name = "DR", precision = 22, scale = 0)
	public Integer getDr() {
		return this.dr;
	}

	public void setDr(Integer dr) {
		this.dr = dr;
	}

	@Column(name = "TS", length = 19)
	public String getTs() {
		return this.ts;
	}

	public void setTs(String ts) {
		this.ts = ts;
	}

}